Page({
  data: {
    meetingContent: 'asdasd',
    meetingName: 'asdasd',
    createTimeStr: '2020-12-31',
    wh:0
  },
  onShow: function () {
    var that = this;
    wx.getSystemInfo({
      success: function (res) {
        that.setData({
          "wh": res.windowHeight - 48 -wx.getSystemInfoSync().statusBarHeight
        })
      }
    })
  },
  goBack: function(){
    wx.navigateBack({
      delta: 1 //返回的页面数，如果 delta 大于现有页面数，则返回到首页,
    });
  },
  onLoad: function (options) {
    var id = options.id;
    var that = this;
    wx.request({
      url: 'https://www.xinhuo.site/api/meeting/detail',
      data: {
        id: id
      },
      method: 'POST',
      header: {
        'Content-Type': 'application/json'
      },
      success(res) {
        if (res.data.syscode == 0) {
          that.data.meetingContent = res.data.record.meetingContent;
          that.data.meetingName = res.data.record.meetingName;
          that.data.createTimeStr = res.data.record.createTimeStr;
          that.setData({
            meetingName: that.data.meetingName,
            meetingContent: that.data.meetingContent,
            createTimeStr: that.data.createTimeStr
          })
        }
      }
    })
  },
  videoErrorCallback(e) {
    console.log('视频错误信息:')
    console.log(e.detail.errMsg)
  }
})
